const crypto = require('crypto')

const md5password = (password) => {
    const md5 = crypto.createHash('md5');
    // 拿到的是16进制的数据 返回字符串
    const result = md5.update(password).digest('hex');
    return result
}
module.exports = md5password

